This repository contains reproducible research files for:

> Leeper, Thomas J. N.d. "Raising the Floor or Closing the Gap? How Media Choice and Media Content Impact Political Knowledge." *Political Communication*: In press.

It contains all data and code necessary to reconstruct the results reported in the paper and the supplemental appendices. It assumes you have all files in a top-level directory with code files `analysis_experiment.R` and `analysis_pew.R` at the top level, with all other code files in an `/Analysis` subdirectory and all data in a `/Data` subdirectory. Tables and figures are written to `/Tables` and `/Figures` subdirectories that should be initialized as empty before running any code.

All analyis reproduces in R 3.6.0 as of March 2020.

The files in the directory our as follows:

- `README.md`: this file
- `Analyis-Experiment.R`: a master R file that calls all R `experiment_*.R` files in the `/Analysis` directory
- `Analysis-Pew.R`: a master R file that calls all R `pew_*.R` files in the `/Analysis` directory
- `Analysis-Experiment-Files.zip`: a zip directory of analysis files for the experiment. These should be decompressed into the `/Analysis` subdirectory.
- `Analysis-Pew-Files.zip`: a zip directory of analysis files for the Pew data used in the appendix. These should be decompressed into the `/Analysis` subdirectory.
- `Pew-Pooled-AllYears.csv`: the main Pew data file used in the appendix containing data from the Pew Biennial Media Consumption surveys conducted between 1996 and 2012.
- `Pew-Data-Cleaning.zip`: a zip directory containing CSV files for all of the Pew studies, adapted by hand from files retrieved from the Roper Center's database, and code to combine those into the `Pew-Pooled-AllYears.csv` data file. (Some of these files were simple exports from SPSS data files. Others required more manual processing from fixed width data files.)
- `Experiment-data-merged.csv`: the main data file for the experiment, constructed from `Experiment-T1data-cleaned.csv` and `Experiment-T2data-cleaned.csv` by the file `/Analyis/experiment_cleaning.R`
- `Experiment-T1data-cleaned.csv`: the main data file used for the experiment
- `Experiment-T2data-cleaned.csv`: the supplemental data file used for the second wave of the experiment, mostly reported in the appendix
- `Experiment-codebook.txt`: a text document with some minimal description of the variables in `Experiment-data-merged.csv` (the main experimental data file)
- `Questionnaire.docx`: a Word document containing the full experimental questionnaire
- `Questionnaire-TreatmentArticles.docx`: a Word document containing the experimental (treatment) articles
- `Questionnaire-ControlArticles.docx`: a Word document containing the experimental (control) articles
- `Manuscript.tex`: a LaTeX file containing the full source for the manuscript, assumed to be executed from the top level directory after running all analysis code
- `SupplementaryMaterials.tex`: a LaTeX file containing the full source for the supplemental appendix (imported by `Manuscript.tex`)
- `References.bib`: a BibTeX database used by `Manuscript.tex`
- `apsa-leeper.bst`: a BibTeX style file used by `Manuscript.tex`
